home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / challenge / 12.09-Sep96 / Testcode96.09R1.sit.hqx / Testcode96.09R1 / README MiniVM Test Code next >
Text File  |  1996-08-20  |  2KB  |  18 lines

  1. Enclosed are 4 test cases for the September 1996 Programmer's Challenge
  2.  
  3. Three of the test cases are Applets created with Symantec Cafe.  The fourth is an application created with Cafe.
  4.  
  5. The JavaMiniVM.µ project parses each of the class files, calls one of the methods, and compares the result to an expected value.
  6.  
  7. Each test case includes a .dmp file created by Symantec's DumpClass routine containing a disassembly of the class file.  
  8.  
  9. Note that these are representative test cases only.  The Challenge test code may stress your code in ways these cases do not.  Feel free to write your own applets following these examples.
  10.  
  11. REVISION 1, 20 Aug 96
  12. - removed a call to a java/awt/Component method inadvertently left in the swarm example
  13. - corrected the Fib example so it does not require input parameters
  14. - added a few opcodes to the MiscByteCodes example (invokenonvirtual, tableswitch)
  15. - corrected the parsing logic for the constant pool so it correctly deals with 8 byte constants
  16.  
  17. NOTE: Your miniVM is expected to set up the execution frame for the class called by the test code.  In a full VM implementation, this would involve allocating space for local variables and the operand stack, as well as running the default constructor for your class.  In the Challenge, class variables will be initialized explicitly in code; you don't need to worry about a constructor.  You _do_ need to create an object reference to your class before beginning execution.  (See the first instruction, aload_0, in the swarm.myRun method.)
  18.